import 'package:json_annotation/json_annotation.dart';

import 'BannerData.dart';

part 'BannerEntity.g.dart';

@JsonSerializable()
class BannerEntity{
  List<BannerData>? data;
  int? errorCode;
  String? errorMsg;

  BannerEntity({this.data, this.errorCode, this.errorMsg});

  factory BannerEntity.fromJson(Map<String,dynamic> json) => _$BannerEntityFromJson(json);

  Map<String,dynamic> toJson() => _$BannerEntityToJson(this);
}